package com.zhs.gccs.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.zhs.gccs.R;

public class WaterMaskView extends BaseView{
    private TextView tv_date;//
    private TextView tv_cjr;//
    private TextView tv_pid;//
    private TextView tv_long;//
    private TextView tv_address;//

    public WaterMaskView(@NonNull Context context) {
        super(context);
    }

    public WaterMaskView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public WaterMaskView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void init(Context context, AttributeSet attrs, int defStyleAttr) {
        View view = LayoutInflater.from(context).
                inflate(R.layout.layout_watermask, this, true);
        tv_cjr = view.findViewById(R.id.tv_cjr);
        tv_date = view.findViewById(R.id.tv_date);
        tv_long = view.findViewById(R.id.tv_long);
        tv_pid = view.findViewById(R.id.tv_pid);
        tv_address = view.findViewById(R.id.tv_address);
    }

    public void setCjrq(String val){
        tv_date.setText(val);
    }
    public void setCjr(String val){
        tv_cjr.setText(val);
    }
    public void setLng(String val){
        tv_long.setText(val);
    }
    public void setAddress(String val){
        tv_address.setText(val);
    }
    public void setXmPid(String pid) {
        tv_pid.setText(pid);
    }
}
